/*
 * @Author: your name
 * @Date: 2020-07-28 19:25:28
 * @LastEditTime: 2020-08-23 10:07:10
 * @Description: In User Settings Edit
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import "./styles/common.less"
import axios from "./utils/axiosUtil"
import qs from "qs"
import store from "./store/index"
import "./utils/basicUtil"
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.use(ElementUi)
Vue.prototype.$qs = qs;
Vue.config.productionTip = false
Object.defineProperty(Vue.prototype, '$axios', { value: axios });

router.afterEach(route => {
    window.scroll(0, 0)
})
router.beforeEach((to, form, next) => {
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')